package test;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		int arr[] = new int [5];
		String str = null;
		Scanner in = new Scanner(System.in);
		while(in.hasNext()){
			String m = in.next();
			try{
				if(m.equals("arr")){
					int n = in.nextInt();
					arr[n] = 1;
				}
				else if(m.equals("null")){
					str.length();
				}
				else if(m.equals("cast")){
					Object o = new String("str");
					Integer x = (Integer)o;
				}
				else if(m.equals("num")){
					String s = in.next();
					Integer.parseInt(s);
				}
				else  break;				
			}catch(Exception e){
				System.out.println(e);	
			}
		}
		in.close();
	}
}

